repo: Store pending objects in prefixed subdirectory
authorColin Walters <walters@verbum.org>
Sun, 15 Feb 2015 20:30:19 +0000 (15:30 -0500)
committerColin Walters <walters@verbum.org>
Sun, 15 Feb 2015 20:30:19 +0000 (15:30 -0500)
commitee4e393fa16e189e183144c4324deb7414d1f679
tree33a45d694c38675ec0b004826104674fa15773e2
parent49bdbf1db0930c5aa30a604945d92fb4782ed423
repo: Store pending objects in prefixed subdirectory

I was hitting a bug in libguestfs/guestmount/FUSE where it blew up
with EINVAL on directories containing lots of files (more than
32000?).  We really want to use prefixed subdirs just like the real
objects/ directory does.

This allows us to share more code between the paths, is more
efficient, etc.
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c